import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';
import 'package:flutter/src/widgets/framework.dart';
import 'package:furaha_mkopo/commonTool/fm_language_tool.dart';
import 'package:furaha_mkopo/page/authentication/dialog/fm_id_card_base_dialog.dart';

class FMIDCardNidaDialog extends FMIdCardBaseDialog{
  FMIDCardNidaDialog(
      {super.key, required super.type, required super.select, required super.onSelect});

  @override
  Widget generatedContent(BuildContext context) {
    return Container(
      width: 311,
      height: 480,
      alignment: Alignment.topCenter,
      decoration: const BoxDecoration(
        image: DecorationImage(
          image: AssetImage('assets/authentication/ic_id_card_nida_dialog_bg.webp'),
          fit: BoxFit.fill,
        ),
      ),
      child: Column(
        children: [
          const SizedBox(height: 12,),
          Container(
            alignment: Alignment.centerLeft,
            margin: const EdgeInsets.only(left: 12),
            height: 28,
            child: Text(
              FMLanguageTool.getText("Correct NIDA"),
              style: const TextStyle(
                  fontSize: 24,
                  fontWeight: FontWeight.w700,
                  color: Color(0xFF333333)),
            ),
          ),

          Container(
            width: 267,
            height: 227,
            margin: const EdgeInsets.only(top: 43,left: 12,right: 12),
            decoration: BoxDecoration(
              image: DecorationImage(
                image: AssetImage(getImagePath()),
              ),
            ),
          ),
          const SizedBox(height: 30,),
          generateNextButton(context),
          generateCancelButton(context)
        ],
      ),
    );
  }

}